#!/bin/sh

homedir=/home/david/wda/test003
/usr/bin/svn update $homedir

port=9004
lsof -i:$port | awk '{print $2}' | while read line; do kill -9 $line; done
/usr/bin/python $homedir/dnsserver.py 127.0.0.1:$port > /dev/null 2>&1 &

port=9005
lsof -i:$port | awk '{print $2}' | while read line; do kill -9 $line; done
/usr/bin/python $homedir/webbench.py 127.0.0.1:$port > /dev/null 2>&1 &

exit 0

